---
layout: m1x_soap
title: Product Attribute Tier Price Update
---

<h2><a name="catalog_product_attribute_tier_price.update-Module%3AMageCatalog"></a>Module: Mage_Catalog</h2>


<h4><a name="catalog_product_attribute_tier_price.update-Resource%3Acatalogproductattributetierprice"></a>Resource: catalog_product_attribute_tier_price</h4>

<p><b>Aliases:</b></p>
<ul>
	<li>product_attribute_tier_price</li>
	<li>product_tier_price</li>
</ul>


<h5><a name="catalog_product_attribute_tier_price.update-Method%3A"></a>Method:</h5>

<ul>
	<li>catalog_product_attribute_tier_price.update (SOAP V1)</li>
	<li>catalogProductAttributeTierPriceUpdate (SOAP V2)</li>
</ul>


<p>Allows you to update the product tier prices.</p>

<p><b>Aliases:</b></p>
<ul>
	<li>product_attribute_tier_price.update</li>
	<li>product_tier_price.update</li>
</ul>



<p><b>Arguments:</b></p>

<table><tbody>
<tr>
<th> Type </th>
<th> Name </th>
<th> Description </th>
</tr>
<tr>
<td> string </td>
<td> sessionId </td>
<td> Session ID </td>
</tr>
<tr>
<td> string </td>
<td> product\productId <br class="atl-forced-newline" /> </td>
<td> Product ID or SKU </td>
</tr>
<tr>
<td> array </td>
<td> tierPrices <br class="atl-forced-newline" /> </td>
<td> Array of catalogProductTierPriceEntity </td>
</tr>
<tr>
<td> string </td>
<td> identifierType </td>
<td> Defines whether the product ID or SKU is passed in the 'product' parameter </td>
</tr>
</tbody></table>


<p><b>Returns</b>:</p>

<table><tbody>
<tr>
<th> Type </th>
<th> Name </th>
<th> Description </th>
</tr>
<tr>
<td> boolean\int </td>
<td> result </td>
<td> True (1) if the product tier price is updated </td>
</tr>
</tbody></table>


<p>The <b>catalogProductTierPriceEntity</b> content is as follows:</p>

<table><tbody>
<tr>
<th> Type </th>
<th> Name </th>
<th> Description </th>
</tr>
<tr>
<td> string </td>
<td> customer_group_id <br class="atl-forced-newline" /> </td>
<td> Customer group ID </td>
</tr>
<tr>
<td> string </td>
<td> website <br class="atl-forced-newline" /> </td>
<td> Website </td>
</tr>
<tr>
<td> int </td>
<td> qty <br class="atl-forced-newline" /> </td>
<td> Quantity of items to which the price will be applied </td>
</tr>
<tr>
<td> double </td>
<td> price <br class="atl-forced-newline" /> </td>
<td> Price that each item will cost </td>
</tr>
</tbody></table>


<h4><a name="catalog_product_attribute_tier_price.update-Examples"></a>Examples</h4>

<h5><a name="catalog_product_attribute_tier_price.update-RequestExampleSOAPV1"></a>Request Example SOAP V1</h5>

<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<div id="root">
		<pre class="theme: Default; brush: php; gutter: false">$proxy = new SoapClient('http://magentohost/api/soap/?wsdl');
$sessionId = $proxy-&gt;login('apiUser', 'apiKey');

$productId = 1;
$tierPrices = array(
	array('customer_group_id' =&gt; '0', 'website' =&gt; '0', 'qty' =&gt; '50', 'price' =&gt; '9.90')
);

$result = $proxy-&gt;call(
	$sessionId,
	'product_attribute_tier_price.update',
	array(
		$productId,
		$tierPrices
	)
);

var_dump($result);</pre>
		</div>
</div></div>

<h5><a name="catalog_product_attribute_tier_price.update-RequestExampleSOAPV2"></a>Request Example SOAP V2</h5>

<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<div id="root">
		<pre class="theme: Default; brush: php; gutter: false">$proxy = new SoapClient('http://magentohost/api/v2_soap/?wsdl');
$sessionId = $proxy-&gt;login('apiUser', 'apiKey');


$productId = 1;
$tierPrices = array(
	array('customer_group_id' =&gt; '0', 'website' =&gt; '0', 'qty' =&gt; '50', 'price' =&gt; '9.90')
);

$result = $proxy-&gt;catalogProductAttributeTierPriceUpdate(
	$sessionId,
	$productId,
	$tierPrices
);

var_dump($result);</pre>
		</div>
</div></div>


<h5><a name="catalog_product_attribute_tier_price.update-RequestExampleSOAPV2%28WSIComplianceMode%29"></a>Request Example SOAP V2 (WS-I Compliance Mode)</h5>

<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<div id="root">
		<pre class="theme: Default; brush: php; gutter: false">$proxy = new SoapClient('http://magentohost/api/v2_soap/?wsdl');
$sessionId = $proxy-&gt;login((object)array('username' =&gt; 'apiUser', 'apiKey' =&gt; 'apiKey'));


$productId = 1;
$tierPrices = array(
	array('customer_group_id' =&gt; '0', 'website' =&gt; '0', 'qty' =&gt; '50', 'price' =&gt; '9.90')
);

$result = $proxy-&gt;catalogProductAttributeTierPriceUpdate((object)array(
'sessionId' =&gt; $sessionId-&gt;result,
'productId' =&gt; $productId,
'tierPrices' =&gt; $tierPrices
));

var_dump($result-&gt;result);</pre>
		</div>
</div></div>

<?php include(__ROOT__ . 'footer.php'); ?>
